﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BizAppFactory.Domain
{
    public partial class DomainTypeBase
    {
        public string DataTypeName
        {
            get
            {
                if (this.BasicDataType != BasicDataTypes.Null)
                {
                    return this.BasicDataType.ToString();
                }
                else
                {
                    if (this.DomainDataType != null)
                    {
                        return this.DomainDataType.Name;
                    }
                    else
                    {
                        return "";
                    }
                }
            }
        }
    }
}
